<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="<%=basePath%>">
<script type="text/javascript" src="script/jquery-1.5.1.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="ckeditor/adapters/jquery.js"></script>
<script type="text/javascript">
	$(function(){
		$("#editor1").ckeditor(function(){
		
		},{
			language : 'zh-cn'
		});
		
		$("#check").click(function(){
			alert( $('#editor1').val() );
		})
	})
</script>
<title>ckeditor</title>
</head>
<body>
	<form action="user/addblog" method="post">
  	<textarea id="editor1" name="content"></textarea>
    <input type="submit" value="提交" />
  </form>
  <div style="width:800px; height:400px; color:#F00;">${content}</div>
</body>
</html>